home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 8069 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: mail.fc.ford.com!MMILLER4
  2. From: mmiller4@mail.fc.ford.com
  3. Newsgroups: vmsnet.misc,comp.lang.c
  4. Subject: Re: How to run a C program taking command line arguments on VMS
  5. Date: 1 Mar 1996 12:31:36 GMT
  6. Organization: Ford Credit
  7. Message-ID: <4h6qn8$glj@eccdb1.pms.ford.com>
  8. References: <4h1u5d$s5c@news.fsu.edu>
  9. Reply-To: mmiller4@mail.fc.ford.com
  10. NNTP-Posting-Host: 19.59.49.253
  11.  
  12. In article <4h1u5d$s5c@news.fsu.edu>, meil@firnvx.firn.edu (Lynn Mei) writes:
  13. >Could someone tell me how to run a C program which takes command line 
  14. >arguments on VAX/VMS? I have checked the FAQ about openVMS and tried the 
  15. >instructions. But I couldn't get it work. I don't have an openVMS mannual.  
  16. >Please help me!
  17. >
  18. >If run on Unix or DOS, I could type something like
  19. >
  20. >  myprog -lu abcd
  21.  
  22. You need to define a "foreign command" in DCL.  For example:
  23.  
  24. $ myprog == "$path:myprog.exe"
  25. $ myprog -lu abcd
  26.  
  27. Note that VMS will convert the command line arguments to lowercase.  To prevent
  28. this from happening, surround the arguments you do not want converted with
  29. double quotes ("ARGUMENT").  For example:
  30.  
  31. $ myprog -lu "abcd"
  32. ------------------------------------------------------------------------------
  33. Michael G. Miller                          "Nobody rides for free!!!" -- RATT
  34. Ford Motor Credit Company
  35. mmiller4@fc.ford.com
  36.  
  37.         -- Views are mine and not necessarily those of my employer. --
  38.